package com.hongning.railway.binding.videoplayer;

import android.databinding.BindingAdapter;

import com.bumptech.glide.Glide;
import com.zhouwei.mzbanner.MZBannerView;
import com.zhouwei.mzbanner.holder.MZHolderCreator;
import com.zhouwei.mzbanner.holder.MZViewHolder;

import java.util.List;

import cn.jzvd.JzvdStd;

public class ViewApdapter {

    @BindingAdapter(value = {"thumbImage","videourl"},requireAll = true)
    public static void initVideo(JzvdStd video, final String videourl, String picurl){
        video.setUp(videourl
                , "" );

        Glide.with(video.getContext()).load(picurl).into(video.thumbImageView);

    }
}
